package com.example.mouther_bg.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.mouther_bg.Bean.Comment;
import com.example.mouther_bg.Bean.Video;
import com.example.mouther_bg.Mapper.CommentMapper;
import com.example.mouther_bg.Mapper.VideoMapper;
import com.example.mouther_bg.service.commentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class commentServiceImpl extends ServiceImpl<CommentMapper, Comment> implements commentService {
    @Autowired
    private VideoMapper videoMapper;
    @Override
    public List<Video> queryComment(int id) {
        List<Video> videos = videoMapper.queryComment(id);
        return videos;
    }
}
